﻿using System;

namespace ControlCenter.Model
{
    /// <summary>
    /// 执行队列【实体类】
    /// </summary>
    public class ExecutionQueue
    {
        /// <summary>
        /// 执行队列ID
        /// </summary>
        public Guid ExecutionQueueId { get; set; }

        public Guid RpId { get; set; }

        /// <summary>
        /// 机器人Id
        /// </summary>

        public Guid RobotId { get; set; }

        /// <summary>
        /// 包id
        /// </summary>
        public Guid PackageId { get; set; }

        /// <summary>
        /// 任务日志类型
        /// </summary>
        public ExecutionQueueType Type { get; set; }

        /// <summary>
        /// 执行时间
        /// </summary>
        public DateTime ExecutionDate { get; set; }

        /// <summary>
        /// 执行时长(秒)
        /// </summary>
        public int ExecutionTime { get; set; }

        /// <summary>
        /// 执行状态
        /// </summary>
        public ExecutionStatus Status { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 跟踪ID
        /// </summary>
        public Guid? TraceId { get; set; }
    }
}
